<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./font_woqorsdedpt/iconfont.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        header {
            width: 1800px;
            display: flex;
            padding: 20px;
            background-color: #525252;
            color: white;
            line-height: 30px;
            border-bottom: 1px solid #999;

        }

        .cont {
            display: flex;
        }


        .cont aside {
            width: 250px;
            background-color: #525252;
            color: #eee;
            text-align: center;
            line-height: 40px;
        }

        .cont aside ul li {
            width: 250px;
            height: 50px;
            line-height: 50px;
            border-bottom: 1px solid #999;
        }

        .cont aside .a1 {
            width: 250px;
            height: 80px;
            line-height: 80px;
            background-color: #525252;
            border-bottom: 1px solid #999;
        }

        .cont aside .a2 {
            width: 250px;
            height: 50px;
            background-color: blue;
            line-height: 50px;
            border-bottom: 1px solid #999;
        }

        .cont aside .a3 {
            width: 250px;
            height: 50px;
            background-color: rgb(243, 243, 251);
            line-height: 50px;
            color: black;
            border-bottom: 1px solid #999;
        }

        main {
            display: flex;
            justify-content: space-around;
            align-items: stretch;
            flex-wrap: wrap;
        }

        main ol {
            width: 100%;
            height: 80px;
        }

        .ab1 {
            width: 680px;
            height: 420px;
            border: 1px solid #000;
            margin-top: 20px;
        }

        p {
            margin-top: 10px;
            margin-left: 10px;
            font-size: 20px;
        }

        p span {
            float: right;
            color: blue;
            margin-right: 20px;
        }

        .b1,
        .b2,
        .b3,
        .b4 {
            width: 680px;
            height: 350px;
            margin-top: 40px;
            padding: 0 10px;

        }

        main table {
            margin: 20px 0;
            width: 100%;

            line-height: 40px;
            text-align: center;
        }

        main table thead tr .kj {
            border-top: 1px solid #000;
        }

        .ii {
            margin-left: 900px;
        }

        .ii>span {
            margin-left: 10px;
        }

        .two {
            width: 400px;
            display: flex;
            justify-content: space-around;
            margin-left: 80px;
        }

        .logo {
            margin-left: 50px;
            font-size: 20px;
        }

        ol {
            height: 50px;
            line-height: 50px;
            margin-left: 20px;
            font-size: 23px;
        }

        ol span {
            float: right;
            margin-right: 20px;
        }

        ol li span {
          color: blue;
        }
    </style>
</head>

<body>
    <header>
        <div class="one">
            <span class="logo">AdminLTE 3</span>
        </div>
        <div class="two">
            <span class="iconfont icon-danlieliebiao"></span>
            <span>Home</span>
            <span>Contatc</span>
            <input type="text" placeholder="Search"><span class="iconfont icon-fangdajing"></span>
        </div class="three">
        <div class="ii">
            <span class="iconfont icon-weixin"></span>
            <span class="iconfont icon-xiaoxi"></span>
            <span class="iconfont icon-fanggepailie"></span>
        </div>
    </header>
    <section class="cont">
        <aside>
            <div class="a1 iconfont icon-yuanquan">Alexander Pierce</div>
            <div class="a2 iconfont icon-yibiaopan">Dashboard</div>
            <ul>
                <li class="iconfont icon-yuanquan">Dashboard v1</li>
                <li class="iconfont icon-yuanquan">Dashboard v2</li>
            </ul>
            <div class="a3 iconfont icon-yuanquan">Dashboard v3</div>
            <ul>
                <li class="iconfont icon-jiugongge">Widgets</li>
                <li class="iconfont icon-bingzhuangtu-03">Charts</li>
                <li class="iconfont icon-shu">Ul Elements</li>
                <li class="iconfont icon-iconfront-">Forms</li>
                <li class="iconfont icon-table">Tables</li>
                <li>EXAMPLES</li>
                <li>Calendar</li>
                <li>Mailbox</li>
                <li>Pages</li>
                <li>Extras</li>
            </ul>
        </aside>
        <main>
            <ol>
                <li> Dashboard v3 <span>/ Dashboard v3</span><span >Home</span></li>
            </ol>
            <div class="ab1">
                <p>Online Store Visitors<span>View Report</span></p>
                <div class="b1"></div>
            </div>

            <div class="ab1">
                <p>Sales<span>View Report</span></p>
                <div class="b2"></div>
            </div>

            <div class="ab1">
                <p>Products<span class="iconfont icon-danlieliebiao"></span></p>
                <div class="b3">
                    <table>
                        <thead>
                            <tr class="kj">
                                <th>Product</th>
                                <th>Price</th>
                                <th>Sales</th>
                                <th>More</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Some Product</td>
                                <td> <span>$</span> 13 USD</td>
                                <td>12,000 <span> Sold</span> </td>
                                <td> 搜索</td>
                            </tr>
                            <tr>
                                <td>Some Product</td>
                                <td>$13 USD</td>
                                <td> <span class="statusok">12,000 Sold</span> </td>
                                <td> 搜索</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="ab1">
                <p>Online Store Overview<span class="iconfont icon-danlieliebiao"></span></p>
                <div class="b4"></div>
            </div>
        </main>
    </section>

</body>

</html>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.0/echarts.js"></script>
<script>
    //echats.js文件会对外暴露一个echats对象
    //1.创建并初始化一个echarts实例
    var b1 = document.querySelector('.b1');
    var e = echarts.init(b1);

    //2.绘制图表
    e.setOption({
        title: { //图表的标题
            text: '820',
            "subtext": "Visitors Over Time",
            left: '0',

        },
        legend: { //图例
            bottom: 20,
            right: 10,
        },

        legend: { //图例
            top: 25,
            // right:10,
        },
        xAxis: { //x轴设置
            data: ['18th', '20th', '22th', '24th', '26th', '28th', '30th']
        },
        // yAxis: { //y轴设置
        //     splitLine: {
        //         show: true
        //     }
        // },

        yAxis: [{ // 纵轴标尺固定
            type: 'value',
            scale: true,
            max: 200,
            min: 0,
            splitNumber: 10,
            boundaryGap: [0.2, 0.2]
        }],


        series: [ //数据系列
            {
                showBackground: false,//显示背景色
                backgroundStyle: {
                    //color: '',
                    borderRadius: 20, //背景圆角
                },
                smooth: true,
                itemStyle: {
                    borderRadius: [5],//边框圆角 
                },
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ //颜色(渐变色)
                    { offset: 0, color: '#83bff6' },
                    { offset: 0.5, color: '#188df0' },
                    { offset: 1, color: '#188df0' }
                ]),
                name: 'This Week',
                type: 'line',
                data: [100, 120, 170, 165, 180, 176, 160],
                symbolSize: 6, //圆点大小
                symbol: 'circle',//圆点形状
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        borderWidth: 2, //圆点的边框宽度
                        lineStyle: { width: 2 }, //折现的宽度
                        shadowBlur: 5,
                    }
                }
            },
            {
                name: 'Last Week',
                type: 'line',
                data: ['60', '80', '70', '65', '82', '79', '100'],
                symbolSize: 6, //圆点大小
                symbol: 'circle',//圆点形状
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        color: '#d3d3d3', //折线颜色
                        borderWidth: 2, //圆点的边框宽度
                        lineStyle: { width: 2 }, //折现的宽度
                        shadowBlur: 2,
                    }
                }
            }

        ]
    });

</script>

<script>
    var b2 = document.querySelector('.b2');
    var f = echarts.init(b2);
    f.setOption({
        title: { //图表的标题
            text: 'Sales'
        },
        legend: { //图例
            bottom: 20,
            right: 10,
        },
        xAxis: { //x轴设置
            data: ['JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']
        },
        yAxis: { //y轴设置

        },
        series: [ //数据系列
            {
                name: 'This year',
                type: 'bar',
                data: [100, 120, 170, 165, 180, 178, 160],
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        color: 'dodgerblue', //折线颜色
                        lineStyle: { width: 2 }, //折现的宽度
                    }
                }
            },
            {
                name: 'Last year',
                type: 'bar',
                data: [60, 80, 70, 65, 80, 78, 100],
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        color: 'gray', //折线颜色
                        lineStyle: { width: 2 }, //折现的宽度
                    }
                }

            }

        ]
    });

</script>
<!-- <script src="./promise-ajax.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/Mock.js/1.0.0/mock.js"></script>
<script src="./mockdata.js"></script>

<script>
     render( data.list )

//渲染表格数据
function render( data ){
    var str = data.map((item,index)=>{
        return `<tr>
                    <td>${item.email}</td>
                    <td>${item.name}</td>
                    <td>${item.phone}</td>
                    <td> 搜索</td>
                </tr>`
    }).join('')
    document.querySelector('tbody').innerHTML = str;
}

</script> -->